﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BattleThis.Core
{

	/// <summary>
	/// A field on the map.
	/// </summary>
	[System.Diagnostics.DebuggerDisplay( "Field: Position: {Position}" )]
	public class Field
	{

		#region Variablen
		#endregion

		#region Properties
		/// <summary>
		/// Gets or sets the position.
		/// </summary>
		/// <value>
		/// The position.
		/// </value>
		public Position Position { get; set; }

		/// <summary>
		/// Gets or sets the landscape of the field.
		/// </summary>
		/// <value>
		/// The land scape.
		/// </value>
		public Landscape LandScape { get; set; }

		/// <summary>
		/// Gets or sets the unit on this field.
		/// </summary>
		/// <value>
		/// The unit.
		/// </value>
		public Unit Unit { get; set; }

		#endregion

		#region Methoden
		/// <summary>
		/// Initializes a new instance of the <see cref="Field"/> class.
		/// </summary>
		/// <param name="position">The position.</param>
		public Field( Position position )
		{
			if( position == null ) throw new ArgumentNullException( "position" );

			this.Position = position;
			this.LandScape = Landscape.Default;
			this.Unit = Unit.Empty;
		}
		#endregion

	}
}